package com.example.springboot.mapper;

import com.example.springboot.controller.requests.BaseRequst;
import com.example.springboot.entity.Categary;
import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper

public interface CategaryMapper {
    List<Categary> list();

    List<Categary> listBycondition(BaseRequst userPageRequst);

    void save(Categary user);

    Categary getByid(Integer id);

    void updateById(Categary user);

    void deleteByid(Integer id);
    String getByname(String name);
}
